{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# 1. Visualization, Part 3: Getting data" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook will examine how to get data into your program so that you can visualize them." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#Table of Contents\n", "* [1. Visualization, Part 3: Getting data](#1.-Visualization,-Part-3:-Getting-data)\n", "\t* [1.1 Direct](#1.1-Direct)\n", "\t* [1.2 Construct a CSV file](#1.2-Construct-a-CSV-file)\n", "\t* [1.3 Download CSV](#1.3-Download--CSV)\n", "\t* [1.4 Latitude, Longitude data in CSV: Plotting points on map](#1.4-Latitude,-Longitude-data-in-CSV:-Plotting-points-on-map)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## 1.1 Direct" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The most straight-froward, if not a bit time-consuming, is to just enter the data directly into arrays in your program. This program contains two arrays: `states` and `pop`:" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "\n", "